<?
include_once($_SERVER['DOCUMENT_ROOT']."/lucy/config.php");

class komand{
	public $komand;
	function komand($komand){
		if(!$dbcon){include(INC.'dbcon.php');}
		$this->komand = mysql_real_escape_string($komand, $dbcon);
		$sql = "INSERT INTO komand_log (`komand`) VALUES ('".$this->komand."')";
		$rez = mysql_query($sql, $dbcon);
		return ($rez) ? 1 : 0;
	}
	
}